.rock {
  animation: rock 1.5s 0s ease-in-out infinite;
}

.shake {
  animation: rock 1.5s 0s ease-in-out infinite;
}

.shake-fast {
  animation: rock 1s 0s ease infinite;
}

.shake {
  animation: rock-slightly 1.5s 0s ease-in-out infinite;
}

.shake-fast-slightly {
  animation: rock-slightly 1s 0s ease infinite !important;
}

@keyframes rock {
  0%,
  65% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  80% {
    transform: rotate(5deg);
  }
  85% {
    transform: rotate(-5deg);
  }
  90% {
    transform: rotate(5deg);
  }
  95% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes rock-slightly {
  0%,
  65% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-2deg);
  }
  80% {
    transform: rotate(2deg);
  }
  85% {
    transform: rotate(-2deg);
  }
  90% {
    transform: rotate(2deg);
  }
  95% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
